import React from 'react';
import { Space, Table, Tag } from 'antd';
import type { TableProps } from 'antd';

interface DataType {
  key: string;
  name: string;
  age: number;
  address: string;
  tags: string[];
}

const columns: TableProps<DataType>['columns'] = [
  {
    title: '行号',
    fixed: 'left',
    align: 'left',
    ellipsis: true,
    key: 'index',
  },
  {
    title: '检验',
    key: 'no',
  },
  {
    title: '项目金额',
    ellipsis: true,
    key: 'updateTime',
  },
  {
    title: '申请时间',
    ellipsis: true,
    key: 'adminName',

  },
  {
    title: '数据来源',
    ellipsis: true,
    key: 'contractType',
  },
  {
    title: '申请医生',
    ellipsis: true,
    key: 'status',
  },
  {
    title: '申请科室',
    ellipsis: true,
    key: 'age',
  },
  {
    title: '申请序号',
    ellipsis: true,
    key: 'number',
  }
];

const data: DataType[] = [
  {
    key: '1',
    name: '张三',
    age: 32,
    address: 'New York No. 1 Lake Park',
    tags: ['nice', 'developer'],
  },
];

const RightTable: React.FC = () => <Table<DataType> columns={columns} dataSource={data} scroll={{ x: 'max-content' }}/>;

export default RightTable;
